# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=py3-pyvmomi
pkgver=8.0.2.0.1
pkgrel=0
pkgdesc="VMware vSphere Python SDK"
url="https://github.com/vmware/pyvmomi"
arch="noarch"
license="Apache-2.0"
depends="py3-requests py3-six"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
checkdepends="py3-pytest py3-vcrpy"
subpackages="$pkgname-pyc"
source="https://github.com/vmware/pyvmomi/archive/v$pkgver/py3-pyvmomi-$pkgver.tar.gz"
builddir="$srcdir/pyvmomi-$pkgver"
options="!check" # tests are massively outdated

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	pytest
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
d14e20dc96c4de525014bd2a6db4e3efbcddc16991491c0dbff61500a6841c3043febe7397669d2baa0ef2dcb15e96db00b3a612898034aff97d57a20cd96662  py3-pyvmomi-8.0.2.0.1.tar.gz
"
